home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 3.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 78 3d 63 6c 61 73 73 20 |........|x=class |
|00000010| 55 42 72 6f 77 73 65 72 | 47 53 70 79 4c 69 6e 6b |UBrowser|GSpyLink|
|00000020| 20 65 78 74 65 6e 64 73 | 20 55 42 72 6f 77 73 65 | extends| UBrowse|
|00000030| 72 42 75 66 66 65 72 65 | 64 54 63 70 4c 69 6e 6b |rBuffere|dTcpLink|
|00000040| 3b 0d 0a 0d 0a 2f 2f 20 | 4d 69 73 63 0d 0a 76 61 |;....// |Misc..va|
|00000050| 72 20 55 42 72 6f 77 73 | 65 72 47 53 70 79 46 61 |r UBrows|erGSpyFa|
|00000060| 63 74 09 09 4f 77 6e 65 | 72 46 61 63 74 6f 72 79 |ct..Owne|rFactory|
|00000070| 3b 0d 0a 76 61 72 20 49 | 70 41 64 64 72 09 09 09 |;..var I|pAddr...|
|00000080| 09 09 4d 61 73 74 65 72 | 53 65 72 76 65 72 49 70 |..Master|ServerIp|
|00000090| 41 64 64 72 3b 0d 0a 76 | 61 72 20 62 6f 6f 6c 09 |Addr;..v|ar bool.|
|000000a0| 09 09 09 09 62 4f 70 65 | 6e 65 64 3b 0d 0a 0d 0a |....bOpe|ned;....|
|000000b0| 2f 2f 20 50 61 72 61 6d | 73 0d 0a 76 61 72 20 73 |// Param|s..var s|
|000000c0| 74 72 69 6e 67 09 09 09 | 09 09 4d 61 73 74 65 72 |tring...|..Master|
|000000d0| 53 65 72 76 65 72 41 64 | 64 72 65 73 73 3b 09 2f |ServerAd|dress;./|
|000000e0| 2f 20 41 64 64 72 65 73 | 73 20 6f 66 20 74 68 65 |/ Addres|s of the|
|000000f0| 20 6d 61 73 74 65 72 20 | 73 65 72 76 65 72 0d 0a | master |server..|
|00000100| 76 61 72 20 69 6e 74 09 | 09 09 09 09 09 4d 61 73 |var int.|.....Mas|
|00000110| 74 65 72 53 65 72 76 65 | 72 54 43 50 50 6f 72 74 |terServe|rTCPPort|
|00000120| 3b 09 2f 2f 20 4f 70 74 | 69 6f 6e 61 6c 20 70 6f |;.// Opt|ional po|
|00000130| 72 74 20 74 68 61 74 20 | 74 68 65 20 6d 61 73 74 |rt that |the mast|
|00000140| 65 72 20 73 65 72 76 65 | 72 20 69 73 20 6c 69 73 |er serve|r is lis|
|00000150| 74 65 6e 69 6e 67 20 6f | 6e 0d 0a 76 61 72 20 69 |tening o|n..var i|
|00000160| 6e 74 20 09 09 09 09 09 | 52 65 67 69 6f 6e 3b 09 |nt .....|Region;.|
|00000170| 09 09 09 09 2f 2f 20 52 | 65 67 69 6f 6e 20 6f 66 |....// R|egion of|
|00000180| 20 74 68 65 20 67 61 6d | 65 20 73 65 72 76 65 72 | the gam|e server|
|00000190| 0d 0a 76 61 72 20 69 6e | 74 09 09 09 09 09 09 4d |..var in|t......M|
|000001a0| 61 73 74 65 72 53 65 72 | 76 65 72 54 69 6d 65 6f |asterSer|verTimeo|
|000001b0| 75 74 3b 0d 0a 76 61 72 | 20 73 74 72 69 6e 67 09 |ut;..var| string.|
|000001c0| 09 09 09 09 47 61 6d 65 | 4e 61 6d 65 3b 0d 0a 0d |....Game|Name;...|
|000001d0| 0a 2f 2f 20 45 72 72 6f | 72 20 6d 65 73 73 61 67 |.// Erro|r messag|
|000001e0| 65 73 0d 0a 76 61 72 20 | 6c 6f 63 61 6c 69 7a 65 |es..var |localize|
|000001f0| 64 20 73 74 72 69 6e 67 | 09 09 52 65 73 6f 6c 76 |d string|..Resolv|
|00000200| 65 46 61 69 6c 65 64 45 | 72 72 6f 72 3b 0d 0a 76 |eFailedE|rror;..v|
|00000210| 61 72 20 6c 6f 63 61 6c | 69 7a 65 64 20 73 74 72 |ar local|ized str|
|00000220| 69 6e 67 09 09 54 69 6d | 65 4f 75 74 45 72 72 6f |ing..Tim|eOutErro|
|00000230| 72 3b 0d 0a 76 61 72 20 | 6c 6f 63 61 6c 69 7a 65 |r;..var |localize|
|00000240| 64 20 73 74 72 69 6e 67 | 09 09 43 6f 75 6c 64 4e |d string|..CouldN|
|00000250| 6f 74 43 6f 6e 6e 65 63 | 74 45 72 72 6f 72 3b 0d |otConnec|tError;.|
|00000260| 0a 0d 0a 2f 2f 20 66 6f | 72 20 57 61 69 74 46 6f |...// fo|r WaitFo|
|00000270| 72 0d 0a 63 6f 6e 73 74 | 20 46 6f 75 6e 64 53 65 |r..const| FoundSe|
|00000280| 63 75 72 65 52 65 71 75 | 65 73 74 20 3d 20 31 3b |cureRequ|est = 1;|
|00000290| 0d 0a 63 6f 6e 73 74 20 | 46 6f 75 6e 64 53 65 63 |..const |FoundSec|
|000002a0| 72 65 74 20 20 20 20 20 | 20 20 20 3d 20 32 3b 0d |ret | = 2;.|
|000002b0| 0a 63 6f 6e 73 74 20 4e | 65 78 74 49 50 20 20 20 |.const N|extIP |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 3d 20 33 3b 0d 0a | | = 3;..|
|000002d0| 63 6f 6e 73 74 20 4e 65 | 78 74 41 64 64 72 65 73 |const Ne|xtAddres|
|000002e0| 73 20 20 20 20 20 20 20 | 20 3d 20 34 3b 0d 0a 0d |s | = 4;...|
|000002f0| 0a 66 75 6e 63 74 69 6f | 6e 20 42 65 67 69 6e 50 |.functio|n BeginP|
|00000300| 6c 61 79 28 29 0d 0a 7b | 0d 0a 09 44 69 73 61 62 |lay()..{|...Disab|
|00000310| 6c 65 28 27 54 69 63 6b | 27 29 3b 0d 0a 09 53 75 |le('Tick|');...Su|
|00000320| 70 65 72 2e 42 65 67 69 | 6e 50 6c 61 79 28 29 3b |per.Begi|nPlay();|
|00000330| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000340| 53 74 61 72 74 28 29 0d | 0a 7b 0d 0a 09 52 65 73 |Start().|.{...Res|
|00000350| 65 74 42 75 66 66 65 72 | 28 29 3b 0d 0a 09 0d 0a |etBuffer|();.....|
|00000360| 09 4d 61 73 74 65 72 53 | 65 72 76 65 72 49 70 41 |.MasterS|erverIpA|
|00000370| 64 64 72 2e 50 6f 72 74 | 20 3d 20 4d 61 73 74 65 |ddr.Port| = Maste|
|00000380| 72 53 65 72 76 65 72 54 | 43 50 50 6f 72 74 3b 0d |rServerT|CPPort;.|
|00000390| 0a 0d 0a 09 69 66 28 20 | 4d 61 73 74 65 72 53 65 |....if( |MasterSe|
|000003a0| 72 76 65 72 41 64 64 72 | 65 73 73 3d 3d 22 22 20 |rverAddr|ess=="" |
|000003b0| 29 0d 0a 09 09 4d 61 73 | 74 65 72 53 65 72 76 65 |)....Mas|terServe|
|000003c0| 72 41 64 64 72 65 73 73 | 20 3d 20 22 6d 61 73 74 |rAddress| = "mast|
|000003d0| 65 72 22 24 52 65 67 69 | 6f 6e 24 22 2e 67 61 6d |er"$Regi|on$".gam|
|000003e0| 65 73 70 79 2e 63 6f 6d | 22 3b 0d 0a 0d 0a 09 52 |espy.com|";.....R|
|000003f0| 65 73 6f 6c 76 65 28 20 | 4d 61 73 74 65 72 53 65 |esolve( |MasterSe|
|00000400| 72 76 65 72 41 64 64 72 | 65 73 73 20 29 3b 0d 0a |rverAddr|ess );..|
|00000410| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 44 6f |}....fun|ction Do|
|00000420| 42 75 66 66 65 72 51 75 | 65 75 65 49 4f 28 29 0d |BufferQu|eueIO().|
|00000430| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 44 6f 42 75 66 |.{...Sup|er.DoBuf|
|00000440| 66 65 72 51 75 65 75 65 | 49 4f 28 29 3b 0d 0a 7d |ferQueue|IO();..}|
|00000450| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 52 65 73 |....func|tion Res|
|00000460| 6f 6c 76 65 64 28 20 49 | 70 41 64 64 72 20 41 64 |olved( I|pAddr Ad|
|00000470| 64 72 20 29 0d 0a 7b 0d | 0a 09 2f 2f 20 53 65 74 |dr )..{.|..// Set|
|00000480| 20 74 68 65 20 61 64 64 | 72 65 73 73 0d 0a 09 4d | the add|ress...M|
|00000490| 61 73 74 65 72 53 65 72 | 76 65 72 49 70 41 64 64 |asterSer|verIpAdd|
|000004a0| 72 2e 41 64 64 72 20 3d | 20 41 64 64 72 2e 41 64 |r.Addr =| Addr.Ad|
|000004b0| 64 72 3b 0d 0a 0d 0a 09 | 2f 2f 20 48 61 6e 64 6c |dr;.....|// Handl|
|000004c0| 65 20 66 61 69 6c 75 72 | 65 2e 0d 0a 09 69 66 28 |e failur|e....if(|
|000004d0| 20 4d 61 73 74 65 72 53 | 65 72 76 65 72 49 70 41 | MasterS|erverIpA|
|000004e0| 64 64 72 2e 41 64 64 72 | 20 3d 3d 20 30 20 29 0d |ddr.Addr| == 0 ).|
|000004f0| 0a 09 7b 0d 0a 09 09 4c | 6f 67 28 20 22 55 42 72 |..{....L|og( "UBr|
|00000500| 6f 77 73 65 72 47 53 70 | 79 4c 69 6e 6b 3a 20 49 |owserGSp|yLink: I|
|00000510| 6e 76 61 6c 69 64 20 6d | 61 73 74 65 72 20 73 65 |nvalid m|aster se|
|00000520| 72 76 65 72 20 61 64 64 | 72 65 73 73 2c 20 61 62 |rver add|ress, ab|
|00000530| 6f 72 74 69 6e 67 2e 22 | 20 29 3b 0d 0a 09 09 72 |orting."| );....r|
|00000540| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 2f |eturn;..|.}...../|
|00000550| 2f 20 44 69 73 70 6c 61 | 79 20 73 75 63 63 65 73 |/ Displa|y succes|
|00000560| 73 20 6d 65 73 73 61 67 | 65 2e 0d 0a 09 4c 6f 67 |s messag|e....Log|
|00000570| 28 20 22 55 42 72 6f 77 | 73 65 72 47 53 70 79 4c |( "UBrow|serGSpyL|
|00000580| 69 6e 6b 3a 20 4d 61 73 | 74 65 72 20 53 65 72 76 |ink: Mas|ter Serv|
|00000590| 65 72 20 69 73 20 22 24 | 4d 61 73 74 65 72 53 65 |er is "$|MasterSe|
|000005a0| 72 76 65 72 41 64 64 72 | 65 73 73 24 22 3a 22 24 |rverAddr|ess$":"$|
|000005b0| 4d 61 73 74 65 72 53 65 | 72 76 65 72 49 70 41 64 |MasterSe|rverIpAd|
|000005c0| 64 72 2e 50 6f 72 74 20 | 29 3b 0d 0a 0d 0a 09 2f |dr.Port |);...../|
|000005d0| 2f 20 42 69 6e 64 20 74 | 68 65 20 6c 6f 63 61 6c |/ Bind t|he local|
|000005e0| 20 70 6f 72 74 2e 0d 0a | 09 69 66 28 20 42 69 6e | port...|.if( Bin|
|000005f0| 64 50 6f 72 74 28 29 20 | 3d 3d 20 30 20 29 0d 0a |dPort() |== 0 )..|
|00000600| 09 7b 0d 0a 09 09 4c 6f | 67 28 20 22 55 42 72 6f |.{....Lo|g( "UBro|
|00000610| 77 73 65 72 47 53 70 79 | 4c 69 6e 6b 3a 20 45 72 |wserGSpy|Link: Er|
|00000620| 72 6f 72 20 62 69 6e 64 | 69 6e 67 20 6c 6f 63 61 |ror bind|ing loca|
|00000630| 6c 20 70 6f 72 74 2c 20 | 61 62 6f 72 74 69 6e 67 |l port, |aborting|
|00000640| 2e 22 20 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |." );...|.return;|
|00000650| 0d 0a 09 7d 0d 0a 0d 0a | 09 4f 70 65 6e 28 20 4d |...}....|.Open( M|
|00000660| 61 73 74 65 72 53 65 72 | 76 65 72 49 70 41 64 64 |asterSer|verIpAdd|
|00000670| 72 20 29 3b 0d 0a 09 53 | 65 74 54 69 6d 65 72 28 |r );...S|etTimer(|
|00000680| 4d 61 73 74 65 72 53 65 | 72 76 65 72 54 69 6d 65 |MasterSe|rverTime|
|00000690| 6f 75 74 2c 20 46 61 6c | 73 65 29 3b 0d 0a 7d 0d |out, Fal|se);..}.|
|000006a0| 0a 0d 0a 65 76 65 6e 74 | 20 54 69 6d 65 72 28 29 |...event| Timer()|
|000006b0| 0d 0a 7b 0d 0a 09 69 66 | 28 21 62 4f 70 65 6e 65 |..{...if|(!bOpene|
|000006c0| 64 29 0d 0a 09 7b 0d 0a | 09 09 4c 6f 67 28 22 55 |d)...{..|..Log("U|
|000006d0| 42 72 6f 77 73 65 72 47 | 53 70 79 4c 69 6e 6b 3a |BrowserG|SpyLink:|
|000006e0| 20 43 6f 75 6c 64 6e 27 | 74 20 63 6f 6e 6e 65 63 | Couldn'|t connec|
|000006f0| 74 20 74 6f 20 6d 61 73 | 74 65 72 20 73 65 72 76 |t to mas|ter serv|
|00000700| 65 72 2e 22 29 3b 0d 0a | 09 09 4f 77 6e 65 72 46 |er.");..|..OwnerF|
|00000710| 61 63 74 6f 72 79 2e 51 | 75 65 72 79 46 69 6e 69 |actory.Q|ueryFini|
|00000720| 73 68 65 64 28 46 61 6c | 73 65 2c 20 43 6f 75 6c |shed(Fal|se, Coul|
|00000730| 64 4e 6f 74 43 6f 6e 6e | 65 63 74 45 72 72 6f 72 |dNotConn|ectError|
|00000740| 24 4d 61 73 74 65 72 53 | 65 72 76 65 72 41 64 64 |$MasterS|erverAdd|
|00000750| 72 65 73 73 29 3b 0d 0a | 09 09 47 6f 74 6f 53 74 |ress);..|..GotoSt|
|00000760| 61 74 65 28 27 44 6f 6e | 65 27 29 3b 09 0d 0a 09 |ate('Don|e');....|
|00000770| 7d 09 0d 0a 7d 0d 0a 0d | 0a 65 76 65 6e 74 20 43 |}...}...|.event C|
|00000780| 6c 6f 73 65 64 28 29 0d | 0a 7b 0d 0a 7d 0d 0a 0d |losed().|.{..}...|
|00000790| 0a 2f 2f 20 48 6f 73 74 | 20 72 65 73 6f 6c 75 74 |.// Host| resolut|
|000007a0| 69 6f 6e 20 66 61 69 6c | 75 65 2e 0d 0a 66 75 6e |ion fail|ue...fun|
|000007b0| 63 74 69 6f 6e 20 52 65 | 73 6f 6c 76 65 46 61 69 |ction Re|solveFai|
|000007c0| 6c 65 64 28 29 0d 0a 7b | 0d 0a 09 4c 6f 67 28 22 |led()..{|...Log("|
|000007d0| 55 42 72 6f 77 73 65 72 | 47 53 70 79 4c 69 6e 6b |UBrowser|GSpyLink|
|000007e0| 3a 20 46 61 69 6c 65 64 | 20 74 6f 20 72 65 73 6f |: Failed| to reso|
|000007f0| 6c 76 65 20 6d 61 73 74 | 65 72 20 73 65 72 76 65 |lve mast|er serve|
|00000800| 72 20 61 64 64 72 65 73 | 73 2c 20 61 62 6f 72 74 |r addres|s, abort|
|00000810| 69 6e 67 2e 22 29 3b 0d | 0a 09 4f 77 6e 65 72 46 |ing.");.|..OwnerF|
|00000820| 61 63 74 6f 72 79 2e 51 | 75 65 72 79 46 69 6e 69 |actory.Q|ueryFini|
|00000830| 73 68 65 64 28 46 61 6c | 73 65 2c 20 52 65 73 6f |shed(Fal|se, Reso|
|00000840| 6c 76 65 46 61 69 6c 65 | 64 45 72 72 6f 72 24 4d |lveFaile|dError$M|
|00000850| 61 73 74 65 72 53 65 72 | 76 65 72 41 64 64 72 65 |asterSer|verAddre|
|00000860| 73 73 29 3b 0d 0a 09 47 | 6f 74 6f 53 74 61 74 65 |ss);...G|otoState|
|00000870| 28 27 44 6f 6e 65 27 29 | 3b 0d 0a 7d 0d 0a 0d 0a |('Done')|;..}....|
|00000880| 65 76 65 6e 74 20 4f 70 | 65 6e 65 64 28 29 0d 0a |event Op|ened()..|
|00000890| 7b 0d 0a 09 62 4f 70 65 | 6e 65 64 20 3d 20 54 72 |{...bOpe|ned = Tr|
|000008a0| 75 65 3b 0d 0a 09 45 6e | 61 62 6c 65 28 27 54 69 |ue;...En|able('Ti|
|000008b0| 63 6b 27 29 3b 0d 0a 0d | 0a 09 57 61 69 74 46 6f |ck');...|..WaitFo|
|000008c0| 72 28 22 5c 5c 62 61 73 | 69 63 5c 5c 5c 5c 73 65 |r("\\bas|ic\\\\se|
|000008d0| 63 75 72 65 5c 5c 22 2c | 20 35 2c 20 46 6f 75 6e |cure\\",| 5, Foun|
|000008e0| 64 53 65 63 75 72 65 52 | 65 71 75 65 73 74 29 3b |dSecureR|equest);|
|000008f0| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |..}.....|.functio|
|00000900| 6e 20 54 69 63 6b 28 66 | 6c 6f 61 74 20 44 65 6c |n Tick(f|loat Del|
|00000910| 74 61 54 69 6d 65 29 0d | 0a 7b 0d 0a 09 44 6f 42 |taTime).|.{...DoB|
|00000920| 75 66 66 65 72 51 75 65 | 75 65 49 4f 28 29 3b 0d |ufferQue|ueIO();.|
|00000930| 0a 7d 0d 0a 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |.}......|function|
|00000940| 20 48 61 6e 64 6c 65 53 | 65 72 76 65 72 28 73 74 | HandleS|erver(st|
|00000950| 72 69 6e 67 20 54 65 78 | 74 29 0d 0a 7b 0d 0a 09 |ring Tex|t)..{...|
|00000960| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 09 41 64 64 |local st|ring.Add|
|00000970| 72 65 73 73 3b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |ress;...|local st|
|00000980| 72 69 6e 67 09 50 6f 72 | 74 3b 0d 0a 0d 0a 09 41 |ring.Por|t;.....A|
|00000990| 64 64 72 65 73 73 20 3d | 20 50 61 72 73 65 44 65 |ddress =| ParseDe|
|000009a0| 6c 69 6d 69 74 65 64 28 | 54 65 78 74 2c 20 22 3a |limited(|Text, ":|
|000009b0| 22 2c 20 31 29 3b 0d 0a | 09 50 6f 72 74 20 3d 20 |", 1);..|.Port = |
|000009c0| 50 61 72 73 65 44 65 6c | 69 6d 69 74 65 64 28 50 |ParseDel|imited(P|
|000009d0| 61 72 73 65 44 65 6c 69 | 6d 69 74 65 64 28 54 65 |arseDeli|mited(Te|
|000009e0| 78 74 2c 20 22 3a 22 2c | 20 32 29 2c 20 22 5c 5c |xt, ":",| 2), "\\|
|000009f0| 22 2c 20 31 29 3b 0d 0a | 0d 0a 09 4f 77 6e 65 72 |", 1);..|...Owner|
|00000a00| 46 61 63 74 6f 72 79 2e | 46 6f 75 6e 64 53 65 72 |Factory.|FoundSer|
|00000a10| 76 65 72 28 41 64 64 72 | 65 73 73 2c 20 69 6e 74 |ver(Addr|ess, int|
|00000a20| 28 50 6f 72 74 29 2c 20 | 22 22 2c 20 47 61 6d 65 |(Port), |"", Game|
|00000a30| 4e 61 6d 65 29 3b 0d 0a | 7d 0d 0a 0d 0a 0d 0a 66 |Name);..|}......f|
|00000a40| 75 6e 63 74 69 6f 6e 20 | 47 6f 74 4d 61 74 63 68 |unction |GotMatch|
|00000a50| 28 69 6e 74 20 4d 61 74 | 63 68 44 61 74 61 29 0d |(int Mat|chData).|
|00000a60| 0a 7b 0d 0a 0d 0a 09 73 | 77 69 74 63 68 28 4d 61 |.{.....s|witch(Ma|
|00000a70| 74 63 68 44 61 74 61 29 | 0d 0a 09 7b 0d 0a 09 63 |tchData)|...{...c|
|00000a80| 61 73 65 20 46 6f 75 6e | 64 53 65 63 75 72 65 52 |ase Foun|dSecureR|
|00000a90| 65 71 75 65 73 74 3a 0d | 0a 09 09 45 6e 61 62 6c |equest:.|...Enabl|
|00000aa0| 65 28 27 54 69 63 6b 27 | 29 3b 0d 0a 09 09 57 61 |e('Tick'|);....Wa|
|00000ab0| 69 74 46 6f 72 43 6f 75 | 6e 74 28 36 2c 20 35 2c |itForCou|nt(6, 5,|
|00000ac0| 20 46 6f 75 6e 64 53 65 | 63 72 65 74 29 3b 0d 0a | FoundSe|cret);..|
|00000ad0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00000ae0| 46 6f 75 6e 64 53 65 63 | 72 65 74 3a 0d 0a 09 09 |FoundSec|ret:....|
|00000af0| 45 6e 61 62 6c 65 28 27 | 54 69 63 6b 27 29 3b 0d |Enable('|Tick');.|
|00000b00| 0a 09 09 53 65 6e 64 42 | 75 66 66 65 72 65 64 44 |...SendB|ufferedD|
|00000b10| 61 74 61 28 22 5c 5c 67 | 61 6d 65 6e 61 6d 65 5c |ata("\\g|amename\|
|00000b20| 5c 22 24 47 61 6d 65 4e | 61 6d 65 24 22 5c 5c 6c |\"$GameN|ame$"\\l|
|00000b30| 6f 63 61 74 69 6f 6e 5c | 5c 22 24 52 65 67 69 6f |ocation\|\"$Regio|
|00000b40| 6e 24 22 5c 5c 76 61 6c | 69 64 61 74 65 5c 5c 22 |n$"\\val|idate\\"|
|00000b50| 24 56 61 6c 69 64 61 74 | 65 28 57 61 69 74 52 65 |$Validat|e(WaitRe|
|00000b60| 73 75 6c 74 2c 20 47 61 | 6d 65 4e 61 6d 65 29 24 |sult, Ga|meName)$|
|00000b70| 22 5c 5c 66 69 6e 61 6c | 5c 5c 22 29 3b 0d 0a 09 |"\\final|\\");...|
|00000b80| 09 47 6f 74 6f 53 74 61 | 74 65 28 27 46 6f 75 6e |.GotoSta|te('Foun|
|00000b90| 64 53 65 63 72 65 74 53 | 74 61 74 65 27 29 3b 0d |dSecretS|tate');.|
|00000ba0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 63 61 73 65 |...break|;...case|
|00000bb0| 20 4e 65 78 74 49 50 3a | 0d 0a 09 09 45 6e 61 62 | NextIP:|....Enab|
|00000bc0| 6c 65 28 27 54 69 63 6b | 27 29 3b 0d 0a 09 09 69 |le('Tick|');....i|
|00000bd0| 66 28 57 61 69 74 52 65 | 73 75 6c 74 20 3d 3d 20 |f(WaitRe|sult == |
|00000be0| 22 66 69 6e 61 6c 5c 5c | 22 29 0d 0a 09 09 7b 0d |"final\\|")....{.|
|00000bf0| 0a 09 09 09 4f 77 6e 65 | 72 46 61 63 74 6f 72 79 |....Owne|rFactory|
|00000c00| 2e 51 75 65 72 79 46 69 | 6e 69 73 68 65 64 28 54 |.QueryFi|nished(T|
|00000c10| 72 75 65 29 3b 0d 0a 09 | 09 09 47 6f 74 6f 53 74 |rue);...|..GotoSt|
|00000c20| 61 74 65 28 27 44 6f 6e | 65 27 29 3b 0d 0a 09 09 |ate('Don|e');....|
|00000c30| 7d 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 09 57 61 |}....els|e.....Wa|
|00000c40| 69 74 46 6f 72 28 22 5c | 5c 22 2c 20 31 30 2c 20 |itFor("\|\", 10, |
|00000c50| 4e 65 78 74 41 64 64 72 | 65 73 73 29 3b 0d 0a 09 |NextAddr|ess);...|
|00000c60| 09 62 72 65 61 6b 3b 0d | 0a 09 63 61 73 65 20 4e |.break;.|..case N|
|00000c70| 65 78 74 41 64 64 72 65 | 73 73 3a 0d 0a 09 09 45 |extAddre|ss:....E|
|00000c80| 6e 61 62 6c 65 28 27 54 | 69 63 6b 27 29 3b 0d 0a |nable('T|ick');..|
|00000c90| 09 09 48 61 6e 64 6c 65 | 53 65 72 76 65 72 28 57 |..Handle|Server(W|
|00000ca0| 61 69 74 52 65 73 75 6c | 74 29 3b 0d 0a 09 09 57 |aitResul|t);....W|
|00000cb0| 61 69 74 46 6f 72 28 22 | 5c 5c 22 2c 20 35 2c 20 |aitFor("|\\", 5, |
|00000cc0| 4e 65 78 74 49 50 29 3b | 0d 0a 09 09 62 72 65 61 |NextIP);|....brea|
|00000cd0| 6b 3b 0d 0a 09 64 65 66 | 61 75 6c 74 3a 0d 0a 09 |k;...def|ault:...|
|00000ce0| 09 62 72 65 61 6b 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |.break;.|..}..}..|
|00000cf0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 47 6f 74 4d 61 |..functi|on GotMa|
|00000d00| 74 63 68 54 69 6d 65 6f | 75 74 28 69 6e 74 20 4d |tchTimeo|ut(int M|
|00000d10| 61 74 63 68 44 61 74 61 | 29 0d 0a 7b 0d 0a 09 4c |atchData|)..{...L|
|00000d20| 6f 67 28 22 54 69 6d 65 | 64 20 6f 75 74 20 69 6e |og("Time|d out in|
|00000d30| 20 6d 61 73 74 65 72 20 | 73 65 72 76 65 72 20 70 | master |server p|
|00000d40| 72 6f 74 6f 63 6f 6c 2e | 20 20 57 61 69 74 69 6e |rotocol.| Waitin|
|00000d50| 67 20 66 6f 72 20 22 24 | 57 61 69 74 69 6e 67 46 |g for "$|WaitingF|
|00000d60| 6f 72 24 22 20 69 6e 20 | 73 74 61 74 65 20 22 24 |or$" in |state "$|
|00000d70| 4d 61 74 63 68 44 61 74 | 61 29 3b 0d 0a 09 4f 77 |MatchDat|a);...Ow|
|00000d80| 6e 65 72 46 61 63 74 6f | 72 79 2e 51 75 65 72 79 |nerFacto|ry.Query|
|00000d90| 46 69 6e 69 73 68 65 64 | 28 46 61 6c 73 65 2c 20 |Finished|(False, |
|00000da0| 54 69 6d 65 4f 75 74 45 | 72 72 6f 72 29 3b 0d 0a |TimeOutE|rror);..|
|00000db0| 09 47 6f 74 6f 53 74 61 | 74 65 28 27 44 6f 6e 65 |.GotoSta|te('Done|
|00000dc0| 27 29 3b 0d 0a 7d 0d 0a | 0d 0a 2f 2f 20 53 74 61 |');..}..|..// Sta|
|00000dd0| 74 65 73 0d 0a 73 74 61 | 74 65 20 46 6f 75 6e 64 |tes..sta|te Found|
|00000de0| 53 65 63 72 65 74 53 74 | 61 74 65 20 0d 0a 7b 0d |SecretSt|ate ..{.|
|00000df0| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 54 69 63 6b 28 |..functi|on Tick(|
|00000e00| 66 6c 6f 61 74 20 44 65 | 6c 74 61 29 0d 0a 09 7b |float De|lta)...{|
|00000e10| 0d 0a 09 09 47 6c 6f 62 | 61 6c 2e 54 69 63 6b 28 |....Glob|al.Tick(|
|00000e20| 44 65 6c 74 61 29 3b 0d | 0a 0d 0a 09 09 2f 2f 20 |Delta);.|.....// |
|00000e30| 48 61 63 6b 20 66 6f 72 | 20 30 20 73 65 72 76 65 |Hack for| 0 serve|
|00000e40| 72 73 20 69 6e 20 73 65 | 72 76 65 72 20 6c 69 73 |rs in se|rver lis|
|00000e50| 74 0d 0a 09 09 69 66 28 | 21 49 73 43 6f 6e 6e 65 |t....if(|!IsConne|
|00000e60| 63 74 65 64 28 29 20 26 | 26 20 57 61 69 74 52 65 |cted() &|& WaitRe|
|00000e70| 73 75 6c 74 20 3d 3d 20 | 22 5c 5c 66 69 6e 61 6c |sult == |"\\final|
|00000e80| 5c 5c 22 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 4f 77 |\\")....|{.....Ow|
|00000e90| 6e 65 72 46 61 63 74 6f | 72 79 2e 51 75 65 72 79 |nerFacto|ry.Query|
|00000ea0| 46 69 6e 69 73 68 65 64 | 28 54 72 75 65 29 3b 0d |Finished|(True);.|
|00000eb0| 0a 09 09 09 47 6f 74 6f | 53 74 61 74 65 28 27 44 |....Goto|State('D|
|00000ec0| 6f 6e 65 27 29 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |one');..|..}...}.|
|00000ed0| 0a 0d 0a 42 65 67 69 6e | 3a 0d 0a 09 45 6e 61 62 |...Begin|:...Enab|
|00000ee0| 6c 65 28 27 54 69 63 6b | 27 29 3b 0d 0a 09 53 65 |le('Tick|');...Se|
|00000ef0| 6e 64 42 75 66 66 65 72 | 65 64 44 61 74 61 28 22 |ndBuffer|edData("|
|00000f00| 5c 5c 6c 69 73 74 5c 5c | 5c 5c 67 61 6d 65 6e 61 |\\list\\|\\gamena|
|00000f10| 6d 65 5c 5c 22 24 47 61 | 6d 65 4e 61 6d 65 24 22 |me\\"$Ga|meName$"|
|00000f20| 5c 5c 66 69 6e 61 6c 5c | 5c 22 29 3b 0d 0a 09 57 |\\final\|\");...W|
|00000f30| 61 69 74 46 6f 72 28 22 | 69 70 5c 5c 22 2c 20 33 |aitFor("|ip\\", 3|
|00000f40| 30 2c 20 4e 65 78 74 49 | 50 29 3b 0d 0a 7d 0d 0a |0, NextI|P);..}..|
|00000f50| 0d 0a 73 74 61 74 65 20 | 44 6f 6e 65 0d 0a 7b 0d |..state |Done..{.|
|00000f60| 0a 42 65 67 69 6e 3a 0d | 0a 09 44 69 73 61 62 6c |.Begin:.|..Disabl|
|00000f70| 65 28 27 54 69 63 6b 27 | 29 3b 0d 0a 7d 0d 0a 0d |e('Tick'|);..}...|
|00000f80| 0a 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+